﻿using System;

namespace SLControlLibrary.Resources.Controls.Calendar.OutlookCalendar.BusinessObjects
{
    public class Appointment
    {
        #region Properties

        public int ID { get; set; }

        public DateTime? StartDate { get; set; }

        public DateTime? EndDate { get; set; }

        public TimeSpan StartTime { get; set; }

        public TimeSpan EndTime { get; set; }

        public AppointmentValue Value { get; set; }

        public string Desc { get; set; }

        public bool IsNewAppointment { get; set; }

        #endregion Properties

        #region Constructor

        public Appointment()
        {
            Desc = String.Empty;
        }

        public Appointment(int ID, DateTime StartDate, DateTime EndDate, TimeSpan StartTime, TimeSpan EndTime, AppointmentValue Value, string Desc)
        {
            this.ID = ID;
            this.StartDate = new DateTime(StartDate.Year, StartDate.Month, StartDate.Day, StartTime.Hours, StartTime.Minutes, StartTime.Seconds);
            this.EndDate = new DateTime(EndDate.Year, EndDate.Month, EndDate.Day, EndTime.Hours, EndTime.Minutes, EndTime.Seconds);
            this.StartTime = StartTime;
            this.EndTime = EndTime;
            this.Value = Value;
            this.Desc = Desc;
        }

        #endregion Constructor
    }
}